/*******************************************************************************
 * Copyright (c) 2010 Mikhail Garber.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Lesser Public License (LGPL)
 * which accompanies this distribution
 * 
 * Contributors:
 *     Mikhail Garber - initial API and implementation
 ******************************************************************************/
package plumber.context;

import java.util.List;

import plumber.common.WorkItem;


/**
 * ContextConverter is responsible for converting of Context objects an WorkItem objects to and from the storable form (a string)
 * @author mgarber
 *
 */
public interface ContextConverter {

	public FlowContext contextFromStorableString(String stored);
	public String toStorableString(FlowContext context);
	
	public WorkItem itemFromStorableString(String stored);
	public String toStorableString(WorkItem item);
	
	public List<WorkItem> itemsFromStorableString(List<String> stored);
	public List<String> toStorableStrings(List<WorkItem> items);
	
	
}
